<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>湖北职业技术学院财务信息查询系统</title>
<LINK href="style/css.css" type="text/css" rel="stylesheet">
</head>
<body>
<html:form action="employee.do?method=save" method="post" onsubmit="return checkForm();">
	<table width="80%" border="0" align="center" cellpadding="0"
		cellspacing="1" class="tableline" id="Table3">
		<tr class="m_lef">
			<td width="40%" height="40" colspan="9" align="center"
				bgcolor="#ffffff" class="STYLE4">添加教职工</td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">职工编号：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp;<input type="text"
				name="empId" /></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">职工姓名：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp;<input type="text"
				name="nickName" /></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">职工职务：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp; <select
				name="empPostId">
				<c:forEach items="${empPosts}" var="empPost">
					<option value="${empPost.id }">${empPost.name }</option>
				</c:forEach>
			</select></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">职工职称：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp; <select
				name="empTitleId">
				<c:forEach items="${empTitles}" var="empTitle">
					<option value="${empTitle.id }">${empTitle.name }</option>
				</c:forEach>
			</select></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">职工类别：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp; <select
				name="empTypeId">
				<c:forEach items="${empTypes}" var="empType">
					<option value="${empType.id }">${empType.name }</option>
				</c:forEach>
			</select></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">所属部门：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp; <select name="depId">
				<c:forEach items="${departments}" var="department">
					<option value="${department.deptId }">${department.deptName
					}</option>
				</c:forEach>
			</select></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">工作状态：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp; <input type="radio"
				checked="checked" name="status" value="1" />在职 <input type="radio"
				name="status" value="0" />离职</td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">入职时间：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp;<input type="text"
				name="empDay" /></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">身份证号码：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp;<input type="text"
				name="idCard" /></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">银行账号：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp;<input type="text"
				name="bankCard" /></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">密码：</font></td>
			<td colspan="8" bgcolor="#ffffff">&nbsp;<input type="text"
				name="password" value="123456" /></td>
		</tr>
		<tr class="m_lef">
			<td height="30" align="right" bgcolor="#ffffff" class="c_title_memed"><font
				face="宋体">用户身份：</font></td>
			<td colspan="8" bgcolor="#ffffff"><c:if test="${!empty roles}">
				<c:forEach items="${roles }" var="role">
					<input type="checkbox" name="roleIds" value="${role.id }" />${role.description}
		  </c:forEach>
			</c:if></td>
		<tr>
			<td height="30" colspan="9" align="center" bgcolor="#ffffff"
				class="c_foot"><input type="submit" value="添加" /><input
				type="reset" value="重置" />&nbsp;&nbsp;</td>
		</tr>
	</table>
	<h5 align="center" style="color: red;">*注：教职工用户初始登录用户名为职工编号，密码默认为123456。</h5>
</html:form>
</body>
</html>